<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播图</title>
    <link rel="shortcut icon" type="images/-icon" href="../d12-7css/favicon_wps图片.ico">
    <style>
        div#outer{
            width: 400px;
            height: 150px;
            /* border: 1px solid red; */
            margin: 0 auto;
            overflow: hidden;
        }
        div.move{
            width: 2000px;
            height: 150px;
            /* background-color: red; */
            animation: move;
            animation-duration: 10s;
            animation-timing-function: steps(5);
            animation-iteration-count: infinite;
        }
        
        div.move div img{
            width: 400px;
            height: 150px;
            float: left;
            
        }
        @keyframes move{
            from{
                margin-left: 0px;

            }
            to{
                margin-left: -2000px;
            }
        }

    </style>
</head>
<body>
    <div id="outer">
        <div class="move">
            <div >
                <img src="../d12-7css/1.gif" alt="">
            </div>
            <div >
                <img src="../d12-7css/2.jpg" alt=""></div>
            <div >
                <img src="../d12-7css/3..jpg" alt="">
                </div>
            <div>
                <img src="../d12-7css/4.jpg" alt=""></div>
            <div >
                <img src="../d12-7css/5..jpg" alt="">
            </div>
        </div>
    </div>
</body>
</html>
